package com.easy.common.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.easy.common.enumbean.Gender;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

@Data
@TableName("customers")
public class Customers extends BaseBean implements Serializable {
    @TableId(type= IdType.AUTO)
    private Integer id;
    @TableField("name")
    private String name;
    private String email;
    private String phone;
    private LocalDate birthdate;
    private Gender gender;
    @TableField(exist = false)
    private List<CustomerContacts> contacts;
}
